package com.educatioin.manage.web.system.repository;

import com.educatioin.manage.web.system.po.LoginHistoryPo;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by BensonZc on 2018/4/22.
 */
@RepositoryRestResource(collectionResourceRel = "loginHistoryRepository", path = "loginHistoryRepository")
public interface LoginHistoryRepository extends PagingAndSortingRepository<LoginHistoryPo, Long> {

    LoginHistoryPo findByToken(String token);
}
